package cn.sc.summer.rabbitmq.po;

import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 类名：rabbit队列校验及消息数据
 *
 * @author a-xin
 * @date 2023/10/17 15:14
 */
@Data
@Accessors(chain = true)
public class RabbitMessage<T> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 是否为有效消息
     */
    private Boolean flag;

    /**
     * 消息数据
     */
    private T message;

}
